

# 此示例示意break 语句

i = 1
while i <= 5:
    print(i)
    if i == 3:
        break  # 调用 break 终止循环
    i += 1
else:
    print('else被执行,i=', i)

print('程序结束！')